//登录接口参数ts类型
//请求
export interface loginForm {
  username: string;
  password: string;
}
//通用响应
export interface ResponseData {
  code: number;
  message: string;
  ok: boolean;
}

//登录响应
export interface loginResponseData extends ResponseData {
  data: string;
}

//用户信息响应
export interface userInfoResponseData extends ResponseData {
  data: {
    route: string[];
    buttons: string[];
    roles: string[];
    name: string;
    avatar: string;
    username: string;
  };
}
